package name.luojun.DBhelper.iface;
import java.sql.SQLException;

import name.luojun.DBhelper.model.ForeignKey;
import name.luojun.DBhelper.model.SimpleColumn;
import name.luojun.DBhelper.model.SimpleTable;
import name.luojun.DBhelper.model.UniqueKey;
public interface IDriver {
	public void createTable(SimpleTable table);
	public void addColumn(SimpleTable table,SimpleColumn column);
	public void modifyColumn(SimpleTable table,SimpleColumn column,SimpleColumn before);
	public void dropColumn(SimpleTable table,SimpleColumn column);
	public void renameColumn(SimpleTable table,SimpleColumn column,String newname);
	public void dropPrimayKey(SimpleTable table);
	public void addPrimayKey(SimpleTable table);
	public void dropUniqueKey(SimpleTable table,UniqueKey uniqueKey);
	public void addUniqueKey(SimpleTable table,UniqueKey uniqueKey);
	public void dropForeignKey(SimpleTable table,ForeignKey foreignKey);
	public void addForeignKey(SimpleTable table,ForeignKey foreignKey);
	public void addcomment(SimpleTable table,SimpleColumn column);
	public SimpleTable getTable(String name,String schema) throws SQLException ;
}
